package com.wind.oauth2.resource.controller;


import com.wind.oauth2.resource.constant.R;
import com.wind.oauth2.resource.entity.TbContent;
import com.wind.oauth2.resource.service.TbContentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wjf
 * @since 2020-11-05
 */
@RestController
public class TbContentController {

    @Autowired
    private TbContentService tbContentService;

    @GetMapping("/")
    public R<List<TbContent>> list(){

        return R.ok(tbContentService.selectAll());
    }


}

